package com.shu.collection;

import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.LinkedBlockingQueue;

/**
 * @author ssm
 * @version V1.0
 * @description:
 * @date 2020/8/18 10:42
 */
@Slf4j
public class QueueTest {

    public static void main(String[] args) throws InterruptedException {

        LinkedBlockingQueue queue = new LinkedBlockingQueue();

        log.info("{}", queue.add("2"));

        queue.add("1");

        log.info("{}", queue.take());

    }
}
